<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
            <h:panelGrid columns="3">
                <h:outputLabel for="searchList" value="Search List:" />
                <h:inputTextarea id="searchList" cols="50" rows="50" value="#{combinationsBean.userList}" />
                <h:commandButton id="devonList" value="Devon Towns and Villages" action="#{combinationsBean.addDevonList}" />
                <h:outputLabel for="anagram" value="Anagram:" />
                <h:inputText id="anagram" value="#{combinationsBean.letters}" size="69" />
                <h:panelGroup />
                <h:panelGroup />
                <h:commandButton action="#{combinationsBean.go}" value="Go" />
            </h:panelGrid>
        </h:form>
        <br />
        <ui:repeat value="#{combinationsBean.found}" var="result">
            <h:outputText value="#{result}" />
            <br />
        </ui:repeat>        
    </h:body>
</html>